package org.bigjava.travel.service;

import org.bigjava.travel.bean.TravelRoute;

import java.util.List;

/**
 * 旅游路线业务逻辑层<接口>
 */

public interface TravelRouteService {

    public long count()throws Exception;

    public TravelRoute findById(Integer id)throws Exception;

    public List<TravelRoute> findList()throws Exception;

    public void save(TravelRoute travelRoute)throws Exception;

    public void update(TravelRoute travelRoute)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<TravelRoute> findByPage(int currentPage, int pageSize, String query)throws Exception;

    public List<TravelRoute> findByPage(int currentPage, int pageSize)throws Exception;

    public long state0count()throws Exception;
    public long state1count()throws Exception;
    public long state2count()throws Exception;
}
